import request from '@/utils/request'

export function fetchDataExtractionDetailList(data) {
  return request({
    url: '/system/dataextraction/DataExtractionDetail/list',
    method: 'post',
    data
  })
}

export function getDataExtractionDetail(id) {
  return request({
    url: '/system/dataextraction/DataExtractionDetail/detail/' + id,
    method: 'get'
  })
}

export function createDataExtractionDetail(data) {
  return request({
    url: '/system/dataextraction/DataExtractionDetail/add',
    method: 'post',
    data
  })
}

export function updateDataExtractionDetail(data) {
  return request({
    url: '/system/dataextraction/DataExtractionDetail/update',
    method: 'post',
    data
  })
}

export function deleteDataExtractionDetail(ids) {
  return request({
    url: '/system/dataextraction/DataExtractionDetail/delete',
    method: 'post',
    data: { ids }
  })
}

